package calculate_define

import "math"

type Adder struct {
}

func (*Adder) Execute(params ...float64) (result float64) {
	result = 0.0
	for _, v := range params {
		result += v
	}
	return math.Trunc(result * 100 + 0.5) / 100 // 只保留2位小数
}
